﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once

#include "GcmpPickInterface.h"
#include "Vector3d.h"
#include "IEventArgs.h"


namespace gcmp
{
    class IGraphicsNodeReference;
    class IDocument;
    class IPickResult;

    /// \brief 拾取事件参数类
    ///
    /// 
    class GCMP_PICK_INTERFACE_EXPORT IPickEventArgs : public IEventArgs
    {
    public:
        /// \brief 得到文档指针
        /// \return 文档指针
        virtual IDocument* GetDocument() const = 0;

        /// \brief 得到拾取选择集
        /// \return 拾取选择集
        virtual const IPickResult& GetPickCandidates() const = 0;

        /// \brief 设置拾取选择集
        /// \param value拾取选择集
        /// \return 返回true表示设置成功，否则表示失败
        virtual bool SetPickCandidates(const IPickResult& value) = 0;

        /// \brief 拾取点
        /// \return 拾取点
        virtual const Vector3d& GetPosition() const = 0;

        /// \brief 拉框选的起点;
        /// \return 拉框选的起点;
        virtual const Vector3d& GetStartPosition() const = 0;

        /// \brief 拉框选的终点;
        /// \return 拉框选的终点;
        virtual const Vector3d& GetEndPosition() const = 0;

        /// \brief 返回用于拾取的多边形顶点
        /// \return 用于拾取的多边形顶点
        virtual const std::vector<Vector3d>& GetPolygonVertexes() const = 0;

        /// \brief 是否反选
        /// \return 是否反选
        virtual bool IsReversePick() const = 0;
    };
}

